
module.exports = function (files) {
    let data = {}
    const output = {}

    delete files['.config'];
    const topos = {}
    for (let k in files) {
        topos[k] = {
            ...files[k].topo,
            topo: {
                name: files[k].topo.topo.name,
                group: (Array.isArray(files[k].topo.topo.group)?files[k].topo.topo.group[0]:files[k].topo.topo.group) || 'index',
            }
        }
    }
    return topos
};
